import Vue from 'vue'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import App from './App.vue'
import router from './router'
import store from "./store"
import axios from "axios"
import qs from  "qs"
import {
    getCurDate,
    setSessionStorage,
    getSessionStorage,
    removeSessionStorage,
    setLocalStorage,
    getLocalStorage,
    removeLocalStorage,
    querystring,
    toDecimal2
} from "./common.js"

Vue.use(ElementUI);
Vue.config.productionTip = false
axios.defaults.baseURL="http://localhost:8082"
//挂载
Vue.prototype.$axios=axios;
Vue.prototype.$qs=qs;
Vue.prototype.$getCurDate=getCurDate
Vue.prototype.$setSessionStorage=setSessionStorage
Vue.prototype.$getSessionStorage=getSessionStorage
Vue.prototype.$removeSessionStorage=removeSessionStorage
Vue.prototype.$setLocalStorage=setLocalStorage
Vue.prototype.$getLocalStorage=getLocalStorage
Vue.prototype.$removeLocalStorage=removeLocalStorage
Vue.prototype.$querystring=querystring
Vue.prototype.$toDecimal2=toDecimal2
new Vue({
    router,
    store,
    render: function (h) {
        return h(App)
    }
}).$mount('#app')
